include makefile_variables

PROGRAM = pirtupir

OBJECTS = connection/connection.o common/common.o main.o nodecache/nodecache.o http/http.o network/network.o parameters/parameters.o GUI/GUI.o


all: clean pirtupir

pirtupir: pirtupir.o

#wec: wec.o
#	gcc -Wall -o wec wec.o $(LIBS)

pirtupir: pirtupir.o
	$(CXX) $(LIBS) $^ -o $@

pirtupir.o : $(OBJECTS)
	$(LINK) -o $@ $(OBJECTS)

#main.o: webengineeringchat.c
#	gcc -c webengineeringchat.c -o main.o

main.o: webengineeringchat.c
	$(COMPILEIT)

GUI/GUI.o:
	make -C GUI

parameters/parameters.o:
	make -C parameters

connection/connection.o:
	make -C connection
	
common/common.o:
	make -C common
	
nodecache/nodecache.o:
	make -C nodecache
	
http/http.o:
	make -C http
	
network/network.o:
	make -C network
	
clean:
	rm -f -r *.o
	make clean -C connection
	make clean -C common
	make clean -C nodecache
	make clean -C http
	make clean -C network
	make clean -C GUI
	make clean -C parameters